<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ActivateYourGlutes.Payloads.MeasurementTypePayloads.EditCreatePayload>" %>
<%@ Import Namespace="ActivateYourGlutes.Payloads.MeasurementTypePayloads" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ViewPage1
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="subheader">
        <h2>Log Measurements</h2>
        <div>            
            <%= Html.ActionLink("Back to Measurement Types", MVC.MeasurementType.Index()) %>
        </div>
    </div>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <p>
                <label for="Description">Description</label>
                <%= Html.TextBox("Description", ViewData.Model.MeasurementType.Description) %>
                <%= Html.ValidationMessage("Description", "*") %>
            </p>
            <p>
                <label for="Type">Type</label>
                <%= Html.DropDownList("Type", ViewData.Model.ValueTypes) %>
                <%= Html.ValidationMessage("Type", "*") %>
            </p>
            <p>
                <input type="submit" value="Create" />
            </p>
        </fieldset>

    <% } %>
</asp:Content>

